﻿@model Project.Domain.Entities.Content
@{
    var action = ViewContext.Controller.ValueProvider.GetValue("action").RawValue.ToString();
    var controller = ViewContext.Controller.ValueProvider.GetValue("controller").RawValue.ToString();
    var returnUrl = "/Admin/" + controller;
}
<div class="table">
	<div class="head_table"><div class="head_title_edit">@controller</div></div>
	<div class="clearAll"></div>
	@using (Html.BeginForm("Save", "ManageContent", FormMethod.Post, new { id = "frmManagement" }))
 {
        <input type="hidden" value="@Model.ContentId" name="hiddenIdAdmincp" />
        <div class="row_text_field_first">
            <table cellspacing="0" cellpadding="0" border="0" width="100%">
                <tr>
                    <td class="left_text_field">Status:</td>
                    <td class="right_text_field">                        
                        @if (Model.Active)
                        {
                            <input checked="checked" type="checkbox" class="custom_chk" name="statusAdmincp" />
                        }
                        else
                        {
                             <input type="checkbox" class="custom_chk" name="statusAdmincp" />
                        }
                       
                     </td>

                </tr>
            </table>
        </div>

        <div class="row_text_field">
            <table cellspacing="0" cellpadding="0" border="0" width="100%">
                <tr>
                    <td class="left_text_field">VietNam:</td>
                    <td class="right_text_field">
                    <textarea name="contentAdmincp" id="contentVi" cols="" rows="8" >
                    </textarea>

                    <script language="javascript">
                        $(document).ready(function () {
                            $("#contentVi").markItUp(myHtmlSettings);
                            
                        });
                    </script>      
                                      
                    </td>
                </tr>
            </table>
        </div>

        <div class="row_text_field">
            <table cellspacing="0" cellpadding="0" border="0" width="100%">
                <tr>
                    <td class="left_text_field">English:</td>
                    <td class="right_text_field">
                        <textarea name="descAdmincp" id="contentEn" cols="" rows="8">
                            <?php if(isset($result->description)) { print $result->description; }else{ print '';} ?>
                        </textarea>
                        <script language="javascript">
                            $(document).ready(function () {
                                $("#contentEn").markItUp(mySettings);
                            });
                        </script>
                    </td>
                </tr>
            </table>
        </div>
 }
</div>